import request from '@/utils/request'

export const getBannerListReq = () => {
  return request({
    url: '/banner/list',
    method: 'GET'
  })
}


export const deleteBannerReq = (data: { bannerid: string }) => {
  return request({
    url: '/banner/delete',
    method: 'GET',
    data
  })
}

export const addBannerReq = (data: { img: string, link: string, alt: string, }) => {
  return request({
    url: '/banner/add',
    method: 'POST',
    data,
  })
}